package ib_model.src;

//
// VLArb: Packet Arbiter
//
simple IBVLArb
{
    parameters:
        int isHcaArbiter;        // if not zero means the VLA is in HCA
        int numPorts;   	      // number of input ports 
        int coreFreq @unit(Hz);  // Core frequency in MHz
        int busWidth @unit(B);   // Switch bus width in bytes (from in-buf 2 vla)
        int maxVL;               // Maximum VL we send on
        int vlHighLimit;         // IB VL Arb High Limit
        string highVLArbEntries; // "vl:weight vl:weight ..."
        string lowVLArbEntries;  // "vl:weight vl:weight ..."
        bool useFCFSRQArb;       // if true will arbitrate RQs on same VL by oldest
        int markrate;

    gates:
        input in[];
        input txCred;
        input free;
        output out;
        output sent[];
}